package com.mdd.front.validate;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BalancePayParam extends BaseParam{

    @NotNull(message = "orderId参数缺失", groups = {create.class, update.class})
    @DecimalMin(value = "0", message = "orderId参数值不能少于0", groups = {create.class, update.class})
    private Integer orderId;

    private Integer userId;

    private BigDecimal couponDiscountPrice;  // 优惠券优惠的价格

    private BigDecimal integralDiscountPrice;  // 积分优惠的价格

    private BigDecimal integralVal;

    private Integer receiveId;

}
